Text this: The mathematics of preference, choice and order