Sorté¢æ° ãSortãã使ãã°ç°¡åã«é åã®ä¸èº«ã並ã³æ¿ãããã¾ãã æé var numbers = [1,4,2,3,6,5] sort(numbers) numbers // [1,2,3,4,5,6]ãã®ã¾ã¾sortã§é åãå¼æ°ã«ä¸ãã¦ãããã°OKã å¼æ°ã®ä¸èº«ãã½ã¼ããããä¸æ¸ãããã¾ãã var strings = ["a", "e", "d", "b", "c"] sort(strings) strings // ["a", "b", "c", "d", "e"]æååããã®éãã éé ä¸è¨ã§éé ã«ä¸¦ã³æ¿ãããã¾ã numbers = [1,4,2,3,6,5] sort(numbers){$0 > $1} numbers // [6,5,4,3,2,1] ã¯ãã¼ã¸ã£ã使ã£ãSortã®çé¢ç®ãªæ¸ãæ¹ é·ã ã¨æ¸ã ä¸è¨ã®ããã«Sorté¢æ°ã¯æ¸ãã¾ãããå®éã¯ä¸è¨ã®ãããªã¯ã
{{#tags}}- {{label}}
{{/tags}}