replace CLUSTER BY with SORT BY in all templates