added sorting for repos