This language bar is your friend. Select your favorite languages!

Idiom #100 Sort by a comparator

Sort elements of array-like collection items, using a comparator c.

#Edit dateEdit SummaryEditor
👁 Δ 47 2018-12-17, 18:04 New Rust implementation by user [freecoder] freecoder
👁 Δ 46 2018-09-15, 21:05 [PHP] Var names items, c. No need for sample values. programming-idioms.org
👁 Δ 45 2018-09-15, 21:02 [PHP] "maintains index association" programming-idioms.org
👁 Δ 44 2018-08-29, 13:55 New PHP implementation by user [ricardo_sdl] ricardo_sdl
👁 Δ 43 2018-05-01, 19:53 [JS] +DocURL programming-idioms.org
👁 Δ 42 2017-07-14, 15:06 [Ruby] No need for sample values programming-idioms.org
👁 Δ 41 2017-07-14, 15:05 [Ruby] No need for sample values programming-idioms.org
👁 Δ 40 2017-07-12, 20:41 New Ruby implementation by user [steenslag] steenslag
👁 Δ 39 2017-06-03, 07:50 New Perl implementation by user [robbat2] robbat2
👁 Δ 38 2017-03-06, 21:25 [Elixir] +DocURL, +DemoURL programming-idioms.org
👁 Δ 37 2017-03-04, 07:23 New Elixir implementation by user [namjae] namjae
👁 Δ 36 2017-02-23, 12:17 New Go implementation by user [programming-idioms.org] programming-idioms.org
👁 Δ 35 2016-12-18, 02:50 Admin deletes impl 1144 programming-idioms.org
👁 Δ 34 2016-12-18, 02:14 +keyword list programming-idioms.org
👁 Δ 33 2016-12-11, 21:30 [Python] List name is items. No need for sample values. programming-idioms.org
👁 Δ 32 2016-12-11, 21:29 [Pascal] Comment emphasis programming-idioms.org
👁 Δ 31 2016-12-11, 20:38 [Ada] Reduced indentation programming-idioms.org
👁 Δ 30 2016-12-11, 20:37 [JS] List name is items. No need for sample values. +DemoURL programming-idioms.org
👁 Δ 29 2016-12-11, 20:24 [Go] this is not an idiomatic name, choosing s instead. programming-idioms.org
👁 Δ 28 2016-12-11, 20:22 New Go implementation by user [programming-idioms.org] programming-idioms.org
👁 Δ 27 2016-11-13, 14:59 [Ruby] +DemoURL programming-idioms.org
👁 Δ 26 2016-10-08, 21:52 [Ruby] typo steenslag
👁 Δ 25 2016-10-08, 21:37 New Ruby implementation by user [steenslag] steenslag
👁 Δ 24 2016-06-02, 03:38 New Erlang implementation by user [elbrujohalcon] elbrujohalcon
👁 Δ 23 2016-04-08, 07:06 [Lua] add comment
👁 Δ 22 2016-04-08, 07:05 New Lua implementation by user [Nepta]
👁 Δ 21 2016-03-20, 23:28 [Pascal] inv char at end
👁 Δ 20 2016-03-20, 23:28 New Pascal implementation by user [JPSII]
👁 Δ 19 2016-02-18, 19:14 New Cpp implementation by user [0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567...
👁 Δ 18 2016-02-18, 19:02 [C] code wrong
👁 Δ 17 2016-02-18, 18:53 Restored version 15
👁 Δ 16 2016-02-18, 16:58 New Haskell implementation by user [JH]
👁 Δ 15 2016-02-17, 17:33 New Ada implementation by user [Smaehtin]
👁 Δ 14 2016-02-16, 19:02 New Haskell implementation by user [JH]
👁 Δ 13 2016-01-09, 17:27 New D implementation by user [piou]
👁 Δ 12 2015-12-30, 16:58 [Go] +DocURL to package sort
👁 Δ 11 2015-12-27, 17:10 New PHP implementation by user [Flyingmana]
👁 Δ 10 2015-12-27, 16:44 New JS implementation by user [benaryorg]
👁 Δ 9 2015-12-27, 16:39 New Python implementation by user [benaryorg]
👁 Δ 8 2015-12-27, 16:36 New Rust implementation by user [benaryorg]
👁 Δ 7 2015-12-27, 16:31 [C]didn't read what had to be done.
👁 Δ 6 2015-12-27, 16:30 New C implementation by user [benaryorg]
👁 Δ 5 2015-12-22, 15:47 New Go implementation by user [programming-idioms.org]
👁 Δ 4 2015-12-22, 15:40 [Java]+demo
👁 Δ 3 2015-12-22, 09:44 [Java]+demo
👁 Δ 2 2015-12-22, 09:40 New Java implementation by user [programming-idioms.org]
1 2015-12-22, 09:37 Idiom creation by user [programming-idioms.org]