sort list
check we have found repository branches in the database to update it