Enhance Sorting Methods with Parameterized Type