Implement all magic methods for Alert sort

Ticket:	#4631
(cherry picked from commit 5ec385cbfc84b81f43195cec773a6fea129f0927)