Sort APIImages by most recent creation date.

This makes the command `docker images` to return the most recent created images first.

Fixes #985.