'use strict';

/**
 * @ngdoc filter
 * @name annotationAppApp.filter:tagAnnotationFilters
 * @function
 * @description
 * # tagAnnotationFilters
 * Filter in the annotationAppApp.
 */
angular.module('app')

    .filter('uidKeysSort', function() {
        return function(input) {
            return input.sort();
        };
    })
    .filter('annotationSentimentFilter', function() {
    	return function(input) {
    		var output = null;
    		if (input === 1) {
    			output = 'Positive';
    		} else if (input === 0.5) {
    			output = 'Neutral';
    		} else if (input === 0) {
    			output = 'Negative';
    		}

    		return output;

    	};
    });