             @currentPage = 1
             if options?
                 @pageSize = options.pageSize || 25
+
+        getComparisonKey: (unit) ->
+            p13n.getTranslatedAttr unit.get('name')
 
         url: ->
             obj = new @model

    _,
    Backbone,
    i18n,
    settings,
    SMSpinner,
    alphabet,

            return not @has 'value'
        isSet: ->
            return not @isEmpty()

    class GeoModel
        getLatLng: ->
            if @latLng?
                @latLng
            coords = @get('location')?.coordinates
            if coords?
                @latLng = L.GeoJSON.coordsToLatLng coords
            @latLng

        getDistanceToLastPosition: ->
            position = p13n.getLastPosition()
            if position?
                position.getLatLng().distanceTo @getLatLng()

    class SMModel extends Backbone.Model
        # FIXME/THINKME: Should we take care of translation only in
