anchor.diff:                  From = FromParam
           end,
           {Json,_,_} = api_help:json_handler(ReqData,State),
  -        FilteredJson = filter_json(Json, From, Size),
  +        FilteredJson = filter_json(Json, From, Size, Sort),
  +		erlang:display(FilteredJson),
           case erlastic_search:search_json(#erls_params{},?INDEX, "stream", FilteredJson) of % Maybe wanna take more
                   {error,Reason1} ->
                           StreamSearch = "\"error\"",
  
positive.code:             SizeParam ->
                  Size = SizeParam
          end,
          case wrq:get_qs_value("from",ReqData) of
              undefined ->
                  From = "0";
  
negative.code: %% Purpose: Used to add private filters to the json query with pagination
  %% Returns: JSON string that is updated with filter and the from size parameters
  %% @end
  filter_json(Json, From, Size, Sort) ->
  	case lib_json:get_field(Json, "sort") of 
  		undefined -> 
  			UseSort = Sort, 
  			SortJson = Json;
  		SortValue -> 
  			UseSort = binary_to_list(SortValue),
  			SortJson = lib_json:rm_field(Json, "sort")
  	end,
      NewJson = string:sub_string(SortJson,1,string:len(SortJson)-1),
      "{\"from\" : "++From++
  	",\"size\" : "++Size++
  	",\"sort\" : \"" ++UseSort++
  	"\" ,\"query\" : {\"filtered\" : "++NewJson++
  	",\"filter\" : {\"bool\" : {\"must\" : {\"term\" : {\"private\" : \"false\"}}}}}}}".
  