timedb: make the usort api more consistent