Updated nfchoas_order() to work with 3D