sorting (1)

Sorting a multi-dimensional array in RubyDecember 01, 2017

Sorting multidimensional works with a few caveats

Recently at work, I’ve been doing some work on a project written in Ruby to enable an endpoint to paginate. Something we need for our mobile apps so we can make a list more performant. In the process of making this work, I ran into a problem with trying to sort a multi-dimensional array. Ruby will look at each index in the nested arrays and compare their indexes to determine which array should…Keep Reading

#ruby#array#sorting

© Matthew Sessions 2022