define(['../app'], function(app){
    var sources = {
        environment: 0,
        local: 1,
        json: 2,
        php: 3
    };
    app.value('primaryKey', 'key');
    app.value('restSortFunction', function(a, b){
        if(sources[a.origin] < sources[b.origin])
            return -1;
        else if(sources[a.origin] > sources[b.origin])
            return 1;
        else
            return a.key.localeCompare(b.key);
    });
    app.value('valueAttribute', 'value');
});