Added StandardLib.sortOn()

Change-Id: I58e4dea52e48eb5daec5cbca8229c076d575b70d
refactored sorting code to use StandardLib.sortOn()