Correct sorting for RSS/JSON