fix gbsort core