Add sort feature to gb