Used sorted set of attributes keys to ensure attributes order.