updates from Trent

added Sort Feature