Fixed a bug in gkList.
After sorting the prev node pointers were a mess.