added a key on repository when fetching available packages list, sort the list regarding repository order