Fixed issue in numgetSlectionSorted()