sort the result of `pomelo list` based on type and id

Change-Id: I761f51f1593aeba695843f4bc3615ec1c22f6efb