I took a quick gander through the code and it looks like you already support the ability to pass custom sorting functions. It would be nice to see an example of that. If you paste a simple example here, I'll do the work and create a PR. Thanks for creating this!