row id sort for statics