Fix bug#4485 Sorting breaks the copy column feature

Signed-off-by: Atul Pratap Singh <atulpratapsingh05@gmail.com>