First attempt at sort in separate thread