changed nodify() to create in little endian, and changed sortify() and print() to assume little endian, for efficiency.