Allow render-sorted! to use a custom sorting function