add background layer from topic if 'bg_topic' is set in topics JSON
sort topic groups by categorysort and categorytitle and topics inside groups by categories_topics_sort and title