[{"data":1,"prerenderedAt":344},["ShallowReactive",2],{"/dict/sort-by":3,"/dict/sort-by-surround":333},{"id":4,"title":5,"body":6,"description":300,"extension":301,"meta":302,"navigation":320,"path":329,"seo":330,"stem":331,"__hash__":332},"content/dict/sort-by.md","NetLogo Dictionary: sort-by",{"type":7,"value":8,"toc":289},"minimark",[9],[10,11,16,35,72,78,84,87,90,255],"div",{"className":12,"id":14,"role":15},[13],"dict_entry","sort-by","region",[17,18,20],"h3",{"id":19},"sort-by13",[21,22,26,27],"a",{"href":23,"role":24,"ariaLabel":25},"#sort-by","doc-noteref","Reference to sort-by","\nsort-by\n",[28,29,34],"span",{"className":30,"role":32,"ariaLabel":33},[31],"since","note","Since version","\n1.3\n",[36,37,41],"h4",{"id":38,"className":39},"sort-by-reporter-listsort-by-reporter-agentset",[40],"section-heading",[21,42,46,62],{"className":43,"href":45},[44],"section-anchor","#sort-by-reporter-listsort-by-reporter-agentset",[28,47,50],{"className":48},[49],"prim_example",[51,52,53,54,58,59],"p",{},"sort-by ",[55,56,57],"em",{},"reporter"," ",[55,60,61],{},"list",[28,63,65],{"className":64},[49],[51,66,53,67,58,69],{},[55,68,57],{},[55,70,71],{},"agentset",[51,73,74,75,77],{},"If the input is a list, reports a new list containing the same\nitems as the input list, in a sorted order defined by the boolean\nreporter. ",[55,76,57],{}," may be an anonymous reporter or\nthe name of a reporter.",[51,79,80,81,83],{},"The two inputs to ",[55,82,57],{}," are the values being compared.\nThe reporter should report true if the first argument comes strictly before\nthe second in the desired sort order, and false otherwise.",[51,85,86],{},"If the input is an agentset or a list of agents, reports a list\n(never an agentset) of agents.",[51,88,89],{},"If the input is a list, the sort is stable, that is, the order of\nitems considered equal by the reporter is not disturbed. If the\ninput is an agentset, ties are broken randomly.",[91,92,93],"pre",{},[94,95,96,58,102,58,105,109,110,58,115,58,119,58,123,127,128,131,109,136,58,139,58,142,58,145,127,148,150,58,153,58,156,109,160,58,163,58,166,58,169,127,172,174,109,177,58,180,58,183,58,186,127,189,191,58,194,197,198,58,202,206,207,58,211,58,215,58,218,58,221,58,224,227,228,58,233,58,237,127,241,243,109,246,58,249,58,252,127],"code",{},[28,97,101],{"className":98},[99,100],"token","command","show",[28,103,14],{"className":104},[99,57],[28,106,108],{"className":107},[99,57],"\u003C"," [",[28,111,114],{"className":112},[99,113],"number","3",[28,116,118],{"className":117},[99,113],"1",[28,120,122],{"className":121},[99,113],"4",[28,124,126],{"className":125},[99,113],"2","]",[129,130],"br",{},[28,132,135],{"className":133},[99,134],"variable","=>",[28,137,118],{"className":138},[99,113],[28,140,126],{"className":141},[99,113],[28,143,114],{"className":144},[99,113],[28,146,122],{"className":147},[99,113],[129,149],{},[28,151,101],{"className":152},[99,100],[28,154,14],{"className":155},[99,57],[28,157,159],{"className":158},[99,57],">",[28,161,114],{"className":162},[99,113],[28,164,118],{"className":165},[99,113],[28,167,122],{"className":168},[99,113],[28,170,126],{"className":171},[99,113],[129,173],{},[28,175,135],{"className":176},[99,134],[28,178,122],{"className":179},[99,113],[28,181,114],{"className":182},[99,113],[28,184,126],{"className":185},[99,113],[28,187,118],{"className":188},[99,113],[129,190],{},[28,192,101],{"className":193},[99,100],[28,195,14],{"className":196},[99,57]," [ [",[28,199,201],{"className":200},[99,134],"string1",[28,203,205],{"className":204},[99,134],"string2","] ",[28,208,210],{"className":209},[99,57],"->",[28,212,214],{"className":213},[99,57],"length",[28,216,201],{"className":217},[99,134],[28,219,108],{"className":220},[99,57],[28,222,214],{"className":223},[99,57],[28,225,205],{"className":226},[99,134]," ] [",[28,229,232],{"className":230},[99,231],"string","\"Grumpy\"",[28,234,236],{"className":235},[99,231],"\"Doc\"",[28,238,240],{"className":239},[99,231],"\"Happy\"",[129,242],{},[28,244,135],{"className":245},[99,134],[28,247,236],{"className":248},[99,231],[28,250,240],{"className":251},[99,231],[28,253,232],{"className":254},[99,231],[51,256,257,258,270,271,270,279,288],{},"See also ",[259,260,262],"primitive",{"displayText":261,"permalink":261},"sort",[21,263,261],{"className":264,"dataDisplayText":261,"href":266,"rel":267,"target":269,"title":261},[265],"netlogo-wiki-link","/dictionary#sort",[268],"noopener","_self",", ",[259,272,274],{"displayText":273,"permalink":273},"sort-on",[21,275,273],{"className":276,"dataDisplayText":273,"href":277,"rel":278,"target":269,"title":273},[265],"/dictionary#sort-on",[268],[259,280,283],{"displayText":281,"permalink":282},"-> (anonymous procedure)","arrow",[21,284,281],{"className":285,"dataDisplayText":281,"href":286,"rel":287,"target":269,"title":281},[265],"/dictionary#arrow",[268],".",{"title":290,"searchDepth":291,"depth":292,"links":293},"",5,3,[294],{"id":19,"depth":292,"text":295,"children":296},"\nsort-by\n\n1.3\n",[297],{"id":38,"depth":298,"text":299},4,"sort-by reporter listsort-by reporter agentset","Documentation for the sort-by primitive.","md",{"source":303,"metadataOutputPath":304,"projectConfig":305,"language":312,"inheritFrom":321,"output":320,"version":306,"layout":322,"dictionaryDisplayName":323,"dictionaryHomeDirectory":324,"indexFileURI":325,"currentItemId":14,"currentItemLabel":14,"primRoot":326,"icon":327,"assetsRoot":328},"autogen/dict/sort-by.md","content/dict/sort-by.metadata.yaml",{"version":306,"projectRoot":288,"scanRoot":307,"outputRoot":308,"defaults":309,"engine":315,"partials":316,"dedupeIdenticalDiskWrites":320},"7.0.4","autogen","content",{"inheritFrom":310,"language":312,"output":313,"extension":301,"title":314,"version":306},[311],0,"en",false,"NetLogo User Manual","handlebars",{"directoryPaths":317,"extensions":318},[288],[319,301],"mustache",true,[311],"catalog","NetLogo Dictionary","/dictionary.html","/_index/dict.txt","dict","i-lucide-square-code","/home/runner/work/Helio/Helio/apps/docs/autogen","/dict/sort-by",{"title":5,"description":300},"dict/sort-by","uNq_gxGw843mocjP0KJdVHiUAAZsPHl5fkIu5AeiPnQ",[334,339],{"title":335,"path":336,"stem":337,"description":338},"NetLogo Dictionary: sort","/dict/sort","dict/sort","Documentation for the sort primitive.",{"title":340,"path":341,"stem":342,"description":343},"NetLogo Dictionary: sort-on","/dict/sort-on","dict/sort-on","Documentation for the sort-on primitive.",1777657840926]