Removed code duplication in onyen sorters and allow programmer-defined
sorting, but do not understand why two instances of onyen sortings are
needed