fixed GPU threaded sort