fixed runtime errors after in game testing, disabled broken sort function