anay: Fixing the sorting of groups from lower to top