more (rev_)range_entries refactoring, expose range_ascending and range_descending