Use AMI ID as a second key to sort AMIs.

Using AMI ID as a second sorting key wil preserve the sorting.
Merge pull request #5 from rail/sorting

Use AMI ID as a second key to sort AMIs.