sort version 1 of the ami