As already mentioned, it is best to sort in a database. What is aloof, if we assume that it is not sorted by the database, should it be sorted, then cache or cache it unsorted and sort it every time you retrieve it from the cache?
, . , , . .
, - API , . , . , , . , , .
. , , , 100 . , , " ". , , , 100 , . .
:
, .
, , . . .