anchor.diff:              SizeParam ->
                   Size = SizeParam
           end,
  +		case wrq:get_qs_value("sort",ReqData) of
  +            undefined ->
  +                Sort = "user_ranking";
  +            SortParam ->
  +                Sort = SortParam
  +        end,
           case wrq:get_qs_value("from",ReqData) of
               undefined ->
                   From = "0";
  
positive.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) ->
          NewJson = string:sub_string(Json,1,string:len(Json)-1),
          "{\"from\" : "++From++", \"size\" : "++Size++", \"query\":{\"filtered\":"++NewJson++",\"filter\":{\"bool\":{\"must\":{\"term\":{\"private\":\"false\"}}}}}}}".
  
  
negative.code:                 From = FromParam
          end,
          {Json,_,_} = api_help:json_handler(ReqData,State),
          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\"",
  