public static List<StructField<?>> getFields(Struct struct) {
        return getFields(struct, 0, null);
    }
Get sorted List of StructFields from a Struct object

@param struct
           the struct object
@return the sorted list
jme3-core/src/main/java/com/jme3/util/struct/StructUtils.java