Support custom sorting elements instead of tbody children