Sort of attributes returned by AttributeKey::getList

alternative approach to fix https://github.com/concrete5/concrete5/pull/1774#issuecomment-49309748