Should we cache raw objects or sorted objects?

Viewed 309

We need list of cities in alphabetic order to a client.

Should we cache the list as it is returned from the database (not sorted) OR cache it after sorting the list (as it would be returned to the client)?

2 Answers
Related