Skip to content

Commit

Permalink
Add A-Z sorting to the streamed files
Browse files Browse the repository at this point in the history
  • Loading branch information
austinv900 committed Sep 6, 2023
1 parent d989411 commit 460caba
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Application.cs
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,10 @@ private void OnMessage(CompilerMessage message)
lock (compilerQueue)
{
message.Client = objectStream;
((CompilerData)message.Data).Message = message;
CompilerData data = (CompilerData)message.Data;
data.Message = message;
data.SourceFiles = data.SourceFiles.OrderBy(f => f.Name).ToArray();
data.ReferenceFiles = data.ReferenceFiles.OrderBy(f => f.Name).ToArray();
compilerQueue.Enqueue(message);
}
break;
Expand Down

0 comments on commit 460caba

Please sign in to comment.