Sort repositories