title: order items after JsonConvert.DeserializeObject using entity c# - Cannot implicitly convert type 'System.Collections.Generic.List
body: <p>I'm getting a result from an API then deserialize it and I want to sort the JSON but it doesn't work and gives me an error: Cannot implicitly convert type 'System.Collections.Generic.List...</p>
  <p>my API :</p>
  <pre><code> public async Task&lt;Root_SDL&gt; ValidateScenario(string SDL_text)
          {
  
  
              try
              {
                  // Api Config
                  var ApiPath = &quot;something here&quot;;
                  var SDL_version = &quot;something here&quot;;
                  // var SDL_text = something here;
                  HttpClient httpClient_ = new HttpClient();
                  var Keys = new List&lt;KeyValuePair&lt;string, string&gt;&gt;();
                  Keys.Add(new KeyValuePair&lt;string, string&gt;(&quot;something here&quot;, SDL_version));
                  Keys.Add(new KeyValuePair&lt;string, string&gt;(&quot;something here&quot;, SDL_text));
                  var ApiRequest = new HttpRequestMessage(HttpMethod.Get, ApiPath) { Content = new FormUrlEncodedContent(Keys) };
                  HttpResponseMessage ApiResponse = await httpClient_.SendAsync(ApiRequest);
                  var responseString_ApiSDL = await ApiResponse.Content.ReadAsStringAsync();
                  // ParserIssuesToJS = responseString_ApiSDL;
                  
                  var APIstatusCode = ApiResponse.StatusCode;
  
                  // API Deserialize
                Root_SDL  SDL = JsonConvert.DeserializeObject&lt;Root_SDL&gt;(responseString_ApiSDL);
                  var test = (from c in SDL.issues select c)
                  .Select(x =&gt; new
                  
                  {
                          x.description,
                          x.columnStart,
                          x.columnEnd,
                          x.lineStart,
                          x.lineEnd
  
                  }
                  )
                  .OrderBy(x=&gt;x.columnStart)
                  .ToList()
                  
                  
                  
                  ;
                
                  return test ; // here is the error (when I return SDL it works well but if I put 'test' that I miss a case or something)
  
              }
              catch (System.Exception)
              {
  
                  throw;
              }
  
          }
  
  </code></pre>
  <p>below is my json. I need from it the 'passed' value as well as the the issues array</p>
  <pre><code>{
      &quot;Name&quot;: &quot;something here&quot;,
      &quot;passed&quot;: false,
      &quot;issues&quot;: [
          {
              &quot;description&quot;: &quot;something here&quot;,
              &quot;lineStart&quot;: 13,
              &quot;lineEnd&quot;: 13,
              &quot;columnStart&quot;: 4,
              &quot;columnEnd&quot;: 10
          },
          {
              &quot;description&quot;: &quot;something here&quot;,
              &quot;lineStart&quot;: 14,
              &quot;lineEnd&quot;: 14,
              &quot;columnStart&quot;: 30,
              &quot;columnEnd&quot;: 31
          },
          {
              &quot;description&quot;: &quot;something here&quot;,
              &quot;lineStart&quot;: 15,
              &quot;lineEnd&quot;: 15,
              &quot;columnStart&quot;: 29,
              &quot;columnEnd&quot;: 30
          },
          {
              &quot;description&quot;: &quot;mismatched input '.' expecting ':'&quot;,
              &quot;lineStart&quot;: 15,
              &quot;lineEnd&quot;: 15,
              &quot;columnStart&quot;: 36,
              &quot;columnEnd&quot;: 37
          },
          {
              &quot;description&quot;: &quot;something here&quot;,
              &quot;lineStart&quot;: 14,
              &quot;lineEnd&quot;: 14,
              &quot;columnStart&quot;: 28,
              &quot;columnEnd&quot;: 30
          },
          {
              &quot;description&quot;: &quot;something here&quot;,
              &quot;lineStart&quot;: 15,
              &quot;lineEnd&quot;: 15,
              &quot;columnStart&quot;: 27,
              &quot;columnEnd&quot;: 29
          },
          {
              &quot;description&quot;: &quot;something here&quot;,
              &quot;lineStart&quot;: 15,
              &quot;lineEnd&quot;: 15,
              &quot;columnStart&quot;: 34,
              &quot;columnEnd&quot;: 36
          }
      ]
  }
  
  
  </code></pre>
  <p>I want to sort it by <strong>columnStart</strong></p>
  <p>below is my Root_SDL class</p>
  <pre><code>
  public class Root_SDL
          {
              public string? fileName { get; set; }    
              public bool passed { get; set; }
              public string? parsingStartTime { get; set; }
              public string? parsingEndTime { get; set; }
              public List&lt;Issue&gt;? issues { get; set; }
              public List&lt;string&gt;? debug { get; set; }
          }
  
  </code></pre>