added option sort repositories in either ascending or descending order
adjusted choice of word for sort by select options to improve charity with sort order
simplifed api in core/sorting, rather than exporting a sorting function, the function selection is kept internal and the exposed function accepts a list of repository objects and a repository query object which is a overkill, but chosen to maintain consistency with core/filtering