yeah should have a default sorting function if no one is explicitly specified. Will change this.