'TypeORM: Sort String field as Number

I have a GraphQL REST service returning a number field as a String. Is it possible to convince .addOrderBy to sort a string field as a number?

I can't modify the schema.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source