added sort flag to unit special rules