bugfix sort fns for intervaltree