made all sorting methods static