2016-6: Shorter Ones to the Front

Write code that takes a vector of vectors as its argument and returns it sorted by the length of each element.

An element of the vector can be scalar or an empty vector.

Examples

Implementation

You can also run the tests via ⌘/shift + enter