BSAGModule: make frontend sort directions according to config