attempt at sort