extensions sorting, fix #85