11 points · by christianberg · 15y ago · 3 comments
The solution, assuming for instance that you are indexing by timestamp, and your timestamp is a string: index by timestamp[::-1] (reverse the string).
Solved, next problem?
Seriously, it is better to get rid of timestamp indexing altogether instead of having an index that is basically useless for anything but fetching an exact timestamp.