1 /*
  2  * Copyright (c) 2012 LabKey Corporation
  3  *
  4  * Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0
  5  */
  6 Ext.data.Types.FieldKey = {
  7     convert: function (v, record) {
  8         if (Ext.isArray(v))
  9             return LABKEY.FieldKey.fromParts(v);
 10         return LABKEY.FieldKey.fromString(v);
 11     },
 12     sortType: function (s) {
 13         return s.toString();
 14     },
 15     type: 'FieldKey'
 16 };