Azure 中 blob 列表的排序顺序

Sort order of blob list in Azure

MSDN 上的 List Blobs 文章说:

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

但是,字母顺序取决于他们使用的文化,或者是否有他们隐含指的字母顺序的精确含义?

我想知道确切的订购方案。我猜测(并希望)他们正在使用序数(二进制)排序规则,相当于 .NET 中的 StringComparison.Ordinal

是的,你是对的。它等于.NET中的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