Add sort module and sort layer configs

Sorts config layer array before use based on "sort" property specified in the config layer objects