fixed some sorting functions and removed the other ones. removed parent link since it was never really used