const arr = [] arr.sort((x, y) => x.prop - y.prop)
const arr = [] arr.sort((x, y) => x.typeName.localeCompare(y.typeName))