fix sorting in PerAppMode and bump to version 1.4.2

Change-Id: I06afde08ae36d2a6a285496288f0790c5fa056c0