add sorting to styles