add compass config
Better sorting + tests