working so far
And now it sorts