Change sorted calls to use "key" parameter in steps formatter

This should help to make it work in Python 3