Factorizing Words Over An Ordered Alphabet