Arbitary Order Lagrange Hexahedron Connectivity

The new versions of VTK&ParaView(5.5 and above) supports arbitary order lagrange hexahedron elements. The ordering of the points (lagrange points facepoints+interior+corners)associated with the elements hasn’t been provided in VTK file format specification in VTK guide. (For simple hex the ordering of nodes is clockwise from inside the cell for one face and similar for the nodes in the opp face ). How do we figure such ordering or pattern for the Arbitary Order Lagrange Hexahedron (other than doing it manually)?

This could help for anyone else looking for the same