Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

c# linq sorting sequential guids

// https://stackoverflow.com/questions/48806510/descending-order-in-listguid-is-different-then-iqueryable-orderbydescending
// A cast to System.Data.SqlTypes.SqlGuid is needed to perform the same in-memory linq-sorting-result in comparison to SQL-Server sorting of UNIQUEIDENTIFIER
yourCollection.OrderBy(x => new SqlGuid(x.YourGuid))
Comment

PREVIOUS NEXT
Code Example
Csharp :: c# windows forms rtc 
Csharp :: what is napalm made of 
Csharp :: Null check operator used on a null value 
Csharp :: c# fieldnullexception 
Csharp :: clear highlight winforms treeview 
Csharp :: how to change the color of a single line of code in c# 
Csharp :: how to get point of collision in unity 
Csharp :: validate preview input number wpf 
Csharp :: Working with null values 
Csharp :: executesqlinterpolatedasync stored procedure 
Csharp :: mvc remote validation additional table 
Csharp :: c# datafield change cell background color 
Csharp :: Include multiple siblings at the Level 
Csharp :: classe padre figlio c# 
Csharp :: != in f# 
Csharp :: c# set two dimensional array 
Csharp :: how to get src value from img tag in c# 
Csharp :: serenity get id from insert repository 
Csharp :: c# if combobox selected index 
Csharp :: asp.netcore: develop on win10 run on ubuntu 
Csharp :: Expression And Filter 
Csharp :: wpf clock conrt 
Csharp :: C# data base sql 
Csharp :: .net return manual status code 
Csharp :: move dotnet dlls to another folder 
Csharp :: how to change the scale of a gameobject in unity 
Csharp :: parallelism in c# 
Csharp :: GetNetworkTime 
Csharp :: VideoPlayer.isPlaying 
Csharp :: telerik mvc grid round sum result 
ADD CONTENT
Topic
Content
Source link
Name
9+7 =