getSortKey callback for getting custom sort keys (work around for #283)