50. implement Sort<T>

TypeScript

  - accepted / - tried

You are able to compare two non-negative integers in LargerThan<A, B> and SmallerThan<A, B>, then you should be able to implement Sort<T> in ascending order.

type A = Sort<[100, 9, 20, 0, 0 55]>
// [0, 0, 9, 55, 100]

Let's try to solve this problem within 20 minutes.