     resourceBrowserPreview.QueueUpdate();
 }
 
+class ResourceType
+{
+    int id;
+    String name;
+    ResourceType(int id_, String name_)
+    {
+        id = id_;
+        name = name_;
+    }
+    int opCmp(ResourceType@ b)
+    {
+        return name.opCmp(b.name);
+    }
+}

        return RESOURCE_TYPE_TEXTURE_3D;
    else if (fileType == XML_TYPE_CUBEMAP)
        return RESOURCE_TYPE_CUBEMAP;

    // extension fileTypes
    else if (fileType == EXTENSION_TYPE_TTF)

const int RESOURCE_TYPE_TEXTURE_3D = 19;
const int RESOURCE_TYPE_CUBEMAP = 20;
const int RESOURCE_TYPE_PARTICLEEMITTER = 21;
const int RESOURCE_TYPE_2D_ANIMATION_SET = 22;

// any resource type > 0 is valid
const int NUMBER_OF_VALID_RESOURCE_TYPES = 22;

const StringHash XML_TYPE_SCENE("scene");
const StringHash XML_TYPE_NODE("node");
