|
@@ -32,7 +32,7 @@ class GetFolders < Riddl::Implementation
|
|
|
Dir.chdir(@r[i])
|
|
|
i +=1
|
|
|
end
|
|
|
- Riddl::Parameter::Complex.new('list','application/json',JSON::pretty_generate(Dir.glob('*/')))
|
|
|
+ Riddl::Parameter::Complex.new('list','application/json',JSON::pretty_generate(Dir.glob('*/').sort_by{|x| x.downcase}))
|
|
|
end
|
|
|
end
|
|
|
|
|
@@ -58,7 +58,7 @@ class GetAllFolders < Riddl::Implementation
|
|
|
Dir.chdir(@r[i])
|
|
|
i +=1
|
|
|
end
|
|
|
- Riddl::Parameter::Complex.new('list','application/json',JSON::pretty_generate(Dir.glob('**/*/')))
|
|
|
+ Riddl::Parameter::Complex.new('list','application/json',JSON::pretty_generate(Dir.glob('**/*/').sort_by{|x| x.downcase}))
|
|
|
end
|
|
|
end
|
|
|
|
|
@@ -81,6 +81,8 @@ class GetImages < Riddl::Implementation
|
|
|
ret.append(e)
|
|
|
end
|
|
|
}
|
|
|
+ ret = ret.sort_by{|x| x.downcase}
|
|
|
+ ret2 = ret2.sort_by{|x| x.downcase}
|
|
|
Riddl::Parameter::Complex.new('list','application/json',JSON::pretty_generate(ret + ret2))
|
|
|
end
|
|
|
end
|