<p>I'm looking at the helm chart versions from the jupyterhub helm repo: <code>https://jupyterhub.github.io/helm-chart/index.yaml</code></p>

<p>When I use <code>helm search  -l jupyterhub/jupyterhub</code>, the versions come out in the order that they appear in the <code>index.yaml</code>, which is not the order in which they are created (according to the <code>created</code> field in <code>index.yaml</code>)</p>

<p>Is there a way to get the version list sorted by date created?</p>

Sam Manzer
<p>From the helm point of view no. But you can tweak the output to get what you want, although it's pretty tricky since the versioning/tagging hasn't been consistent for <code>jupyterhub/jupyterhub</code> for example. </p>

<p>Anyhow, I came up with this bash/Ruby one-liner but it's picking it up directly from: <code>https://jupyterhub.github.io/helm-chart/index.yaml</code></p>

<pre><code>$ curl -s https://jupyterhub.github.io/helm-chart/index.yaml | ruby -ryaml -rjson -rdate -e 'puts YAML.load(ARGF)["entries"]["binderhub"].sort_by {|hsh| hsh["created"] }'
</code></pre>
