remove unused Sort function