Functions are now sorted in new order