done - but can't get sort to work