GPNDEV-112 Added sorting by attribute