Sort video row and column data.