First of all, regarding the error - either one of the fields that you're trying to show/hide doesn't exist, has different Internal Name, or it's simply not ready() when you try to call it.
For example, before running any code on a lookup field, it's highly recommended to wait for it to finish rendering with the ready() method instead of running it on load, like this, for fields Lookup and Lookup2:
Regarding ordering - Calculated fields cannot be ordered directly, just like they cannot be filtered. Instead of trying to order by calculated field, you need to replicate calculation in your code.
For example, if you calculated field has "Title + ID", you need to order by Title and ID fields instead.