[{"data":1,"prerenderedAt":118},["ShallowReactive",2],{"class-doc-/reference/2.0/gg_inventory/gginventorysortingstrategy":3,"navigation":46},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"_id":8,"navigation":6,"addon":5,"version":9,"brief_description":10,"description":11,"tutorials":7,"methods":12,"members":32,"signals":38,"constants":39,"inherits":40,"name":41,"title":41,"_source":42,"_file":43,"_stem":44,"_extension":45},"/reference/2.0/gg_inventory/gginventorysortingstrategy","gg_inventory",false,"","content:40.reference:2.0:gg_inventory:GGInventorySortingStrategy.xml","2.0","Implements inventory item sorting by name.","Sorts [GGInventory] items by name. [br][br]Extend this class to implement additional sorting strategies. In most cases, it's sufficient to override [method _sort_callback].",[13,22],{"description":14,"name":15,"public":16,"returnType":17,"params":18},"Sort the [param items] using [method Array.sort_custom]) using the [method _sort_callback].","sort_items",true,"void",[19],{"name":20,"type":21},"items","GGItemData[]",{"description":23,"name":24,"public":6,"returnType":25,"params":26},"Performs the custom sorting. Parameters [param a] and [param b] are either instances of [GGItemData] or [code]null[/code]. If the items are in the correct order (a before b) this method returns [code]true[/code].","_sort_callback","bool",[27,30],{"name":28,"type":29},"a","GGItemData",{"name":31,"type":29},"b",[33],{"name":34,"description":35,"type":36,"setter":7,"getter":7,"default":37,"public":16},"sort_label","The label this sorting strategy will be visible as in the user interface.","String","\"Unnamed\"",[],[],"Resource","GGInventorySortingStrategy","content","40.reference/2.0/gg_inventory/GGInventorySortingStrategy.xml","40.reference/2.0/gg_inventory/GGInventorySortingStrategy","xml",[47,56,83,103],{"title":48,"_path":49,"children":50},"Getting Started","/getting-started",[51,53],{"title":52,"_path":49},"Introduction",{"title":54,"_path":55},"Installation","/getting-started/installation",{"title":57,"_path":58,"children":59},"Concepts","/concepts",[60,62,65,68,71,74,77,80],{"title":61,"_path":58},"Overview",{"title":63,"_path":64},"Inventory","/concepts/inventory",{"title":66,"_path":67},"Interactions","/concepts/interaction",{"title":69,"_path":70},"Permissions","/concepts/permissions",{"title":72,"_path":73},"Multiplayer","/concepts/multiplayer",{"title":75,"_path":76},"User Interface","/concepts/user-interface",{"title":78,"_path":79},"Game Integration","/concepts/game-integration",{"title":81,"_path":82},"Crafting","/concepts/crafting",{"title":84,"_path":85,"children":86},"Demos","/demos",[87,89,92,95,97,100],{"title":88,"_path":85},"Inventory Tour",{"title":90,"_path":91},"Inventory UI Playground","/demos/inventory_ui",{"title":93,"_path":94},"Inventory Game UI","/demos/inventory_game_ui",{"title":81,"_path":96},"/demos/crafting",{"title":98,"_path":99},"Multiplayer Lobby","/demos/mp_lobby",{"title":101,"_path":102},"Sequencer (prototype)","/demos/sequencer",{"title":104,"_path":105,"children":106},"Guide","/guide",[107,109,112,115],{"title":108,"_path":105},"Architecture Deep Dive",{"title":110,"_path":111},"Design Principles","/guide/design-principles",{"title":113,"_path":114},"Changelog v2.x","/guide/changelog-v2",{"title":116,"_path":117},"Changelog v1.x","/guide/changelog",1743268976869]