[GH-ISSUE #14539] Does the ollama list command support sorting the list contents by name? #55945

Closed
opened 2026-04-29 09:58:58 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @zhang9w0v5 on GitHub (Mar 2, 2026).
Original GitHub issue: https://github.com/ollama/ollama/issues/14539

Does the ollama list command support sorting the list contents by name?

Originally created by @zhang9w0v5 on GitHub (Mar 2, 2026). Original GitHub issue: https://github.com/ollama/ollama/issues/14539 Does the ollama list command support sorting the list contents by name?
GiteaMirror added the feature request label 2026-04-29 09:58:58 -05:00
Author
Owner

@LingFan11 commented on GitHub (Mar 2, 2026):

Thanks for your suggestion!

Currently, ollama list does not support sorting. As a workaround, you can use:

ollama list | sort  # Sort by name
ollama list | sort -k2 -n  # Sort by size

Or you can use ollama list -json and process with jq for more control.

Feel free to open a feature request on GitHub if you need this functionality!

<!-- gh-comment-id:3981843520 --> @LingFan11 commented on GitHub (Mar 2, 2026): Thanks for your suggestion! Currently, `ollama list` does not support sorting. As a workaround, you can use: ```bash ollama list | sort # Sort by name ollama list | sort -k2 -n # Sort by size ``` Or you can use `ollama list -json` and process with jq for more control. Feel free to open a feature request on GitHub if you need this functionality!
Author
Owner

@rick-github commented on GitHub (Mar 2, 2026):

@LingFan11 Please don't post AI slop.

<!-- gh-comment-id:3982830020 --> @rick-github commented on GitHub (Mar 2, 2026): @LingFan11 Please don't post AI slop.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#55945