fixed tables sorting