sorting stuff
interval compareTo