Questions tagged [sort]

Vim command for sorting a set of lines.

2 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1
vote
0answers
25 views

How to force glob() to make result in numerical order?

I have next files in the directory: ls -1 file_* file_1 file_101 file_2 file_202 file_3 file_4 file_5 In Vim I want to have these files in a numerically ordered list, like so: ['file_1', 'file_2', ...
1
vote
0answers
61 views

sort json content in terraform file

I'm trying to sort following json that is inside of terraform file. I'd like to sort it alphabetically by "name" value (ENV->PORT->USERNAME): { "name": "PORT", "value": ...