42 Technologies interview question

See above: sorting a table with custom rules.