Add an option to pass an alternate sorting method

So I can use a slightly different sorting method for a project :) Thanks!