Fix properties sort in the flag module