Logical Sort

Sort column with logical sorting method

Input

Output