Skip to content

Commit 108719d

Browse files
TashasEvBillWagner
authored andcommitted
Clarify sort example (#802)
For the .vb file (.cs file handled in #801) - I added an additional "Jody" to demonstrate how the sorting function handles duplicate values, and updated the sample unsorted and sorted output to demonstrate how the duplication is handled. Fixes dotnet/dotnet-api-docs#1875
1 parent ac52710 commit 108719d

File tree

1 file changed

+4
-4
lines changed
  • snippets/visualbasic/VS_Snippets_CLR_System/system.collections.generic.list.sort/vb

1 file changed

+4
-4
lines changed

snippets/visualbasic/VS_Snippets_CLR_System/system.collections.generic.list.sort/vb/Sort1.vb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ Imports System.Collections.Generic
77
Module Example
88
Public Sub Main()
99
Dim names() As String = { "Samuel", "Dakota", "Koani", "Saya",
10-
"Vanya", "Yiska", "Yuma", "Jody",
11-
"Nikita" }
10+
"Vanya", "Jody", "Yiska", "Yuma",
11+
"Jody", "Nikita" }
1212
Dim nameList As New List(Of String)()
1313
nameList.AddRange(names)
1414
Console.WriteLine("List in unsorted order: ")
@@ -27,8 +27,8 @@ Module Example
2727
End Module
2828
' The example displays the following output:
2929
' List in unsorted order:
30-
' Samuel Dakota Koani Saya Vanya Yiska Yuma Jody Nikita
30+
' Samuel Dakota Koani Saya Vanya Jody Yiska Yuma Jody Nikita
3131
'
3232
' List in sorted order:
33-
' Dakota Jody Koani Nikita Samuel Saya Vanya Yiska Yuma
33+
' Dakota Jody Jody Koani Nikita Samuel Saya Vanya Yiska Yuma
3434
' </Snippet2>

0 commit comments

Comments
 (0)