Fixed repo sorting