Correct sorting for archive