How about a `extractKeys` function that can be used similar as the `sort` function:

`...then(extractKeys).then(sort).then(...`