Sort the rpms to verify before building the cmd.

Change-Id: I82f5b5b7c255a68028e24ee5a4326aba954aa34e