static int Sort(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 1)
            {
                Spine.ExposedList <Spine.Animation> obj = (Spine.ExposedList <Spine.Animation>)ToLua.CheckObject <Spine.ExposedList <Spine.Animation> >(L, 1);
                obj.Sort();
                return(0);
            }
            else if (count == 2 && TypeChecker.CheckTypes <System.Comparison <Spine.Animation> >(L, 2))
            {
                Spine.ExposedList <Spine.Animation> obj  = (Spine.ExposedList <Spine.Animation>)ToLua.CheckObject <Spine.ExposedList <Spine.Animation> >(L, 1);
                System.Comparison <Spine.Animation> arg0 = (System.Comparison <Spine.Animation>)ToLua.ToObject(L, 2);
                obj.Sort(arg0);
                return(0);
            }
            else if (count == 2 && TypeChecker.CheckTypes <System.Collections.Generic.IComparer <Spine.Animation> >(L, 2))
            {
                Spine.ExposedList <Spine.Animation> obj = (Spine.ExposedList <Spine.Animation>)ToLua.CheckObject <Spine.ExposedList <Spine.Animation> >(L, 1);
                System.Collections.Generic.IComparer <Spine.Animation> arg0 = (System.Collections.Generic.IComparer <Spine.Animation>)ToLua.ToObject(L, 2);
                obj.Sort(arg0);
                return(0);
            }
            else if (count == 4)
            {
                Spine.ExposedList <Spine.Animation> obj = (Spine.ExposedList <Spine.Animation>)ToLua.CheckObject <Spine.ExposedList <Spine.Animation> >(L, 1);
                int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
                int arg1 = (int)LuaDLL.luaL_checknumber(L, 3);
                System.Collections.Generic.IComparer <Spine.Animation> arg2 = (System.Collections.Generic.IComparer <Spine.Animation>)ToLua.CheckObject <System.Collections.Generic.IComparer <Spine.Animation> >(L, 4);
                obj.Sort(arg0, arg1, arg2);
                return(0);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: Spine.ExposedList<Spine.Animation>.Sort"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }