access point list ordering fixes, improvements and tests