Answer the question
In order to leave comments, you need to log in
[[+content_image]]
How to sort an array of arrays by a certain element?
There is an array:
[[1, '...', '...'], [2, '...', '...'], [3, '...', '...'], [4, '...', '...']]
Answer the question
In order to leave comments, you need to log in
Look at the key parameter of the sort and sorted builtin functions. They are made primarily to solve your problem.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question