better unique sorting