if user has no permission for a app, it is no going to exist in app_list. I...
if user has no permission for a app, it is no going to exist in app_list. I added a if statement so that the code will not be trying to reorder a app which is not exist in app_list