[{"data":1,"prerenderedAt":47},["ShallowReactive",2],{"lesson-shell:dynamic-arrays\u002Fsort-sortby:en":3},{"id":4,"who":5,"role":6,"image":7,"text":8},"sort-sortby","Nadia Rahman","runs Inkwell Books and loves data","\u002Fpersona\u002Fnadia.webp",{"none":9,"win":35,"mac":41},{"title":10,"story":11,"steps":12},"Best sellers first","Book week is close. Nadia wants a best seller table by the door and a sale table at the back. The sales list is in the order of the shop system. She wants sorted lists that stay sorted when the numbers change.",[13,25],{"id":14,"title":15,"intro":16,"how":17,"example":23,"task":24},"sort","Sort a table with SORT","SORT returns a range in a new order. The second argument is the column to sort by. The third argument is the order: 1 for low to high, -1 for high to low.",[18,19,20,21,22],"Click cell F5.","Type =SORT( and the table without the titles.","Type the column number, -1 for high to low and a closing bracket.","Press Enter.","To leave out an argument, type two commas: =SORT(D5:D16,,-1) sorts one column high to low.","=SORT(B5:D16,3,-1)","Sort the reading night list by tickets, the most tickets first. Put it in cell M5.",{"id":26,"title":27,"intro":28,"how":29,"example":33,"task":34},"sortby","Sort by another column with SORTBY","SORTBY sorts one range by the values of another range. The sort column does not have to be in the result.",[30,31,32,21],"Click cell J13.","Type =SORTBY( and the range for the result.","Type the range to sort by and a closing bracket.","=SORTBY(B5:B16,C5:C16)","Slow sellers go on the sale table. In cell M13, list the titles by sales, the lowest sales first.",{"title":10,"story":11,"steps":36},[37,39],{"id":14,"title":15,"intro":16,"how":38,"example":23,"task":24},[18,19,20,21,22],{"id":26,"title":27,"intro":28,"how":40,"example":33,"task":34},[30,31,32,21],{"title":10,"story":11,"steps":42},[43,45],{"id":14,"title":15,"intro":16,"how":44,"example":23,"task":24},[18,19,20,21,22],{"id":26,"title":27,"intro":28,"how":46,"example":33,"task":34},[30,31,32,21],1795376395703]