Sort order of blob list in Azure

泪湿孤枕 提交于 2020-01-15 10:44:08

问题


The List Blobs article on MSDN says that:

Blobs are listed in alphabetical order in the response body, with upper-case letters listed first.

However, alphabetical ordering depend on which culture they're using, or is there a precise meaning of alphabetical order that they are implicitly referring to?

I want to know the exact ordering scheme. I'm guessing (and hoping) that they are using the ordinal (binary) sorting rules, equivalent to StringComparison.Ordinal in .NET.


回答1:


Yes , you are right. It equals to StringComparison.Ordinal in .NET. All of the listed blobs are all encoded in UTF-16.And the list blob name rule is that comparing the 2 strings char by char. The small Unicode value is before the large one. It is the same rule with StringComparison.Ordinal in .NET.



来源:https://stackoverflow.com/questions/40288123/sort-order-of-blob-list-in-azure

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!