Query js fix

Merging apns_conf_local.xml has 2 issues;

1. each apn in apns_conf_local.xml is not merged into gAndroidDB
2. sorting key is not correct