added sorting for comparables, hopefully, needs to be tested