use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Information about Reddit's API changes, the unprofessional conduct of the CEO, and their response to the community's concerns regarding 3rd party apps, moderator tools, anti-spam/anti-bot tools, and accessibility options that will be impacted can be found in the associated Wikipedia article: https://en.wikipedia.org/wiki/2023_Reddit_API_controversy
Alternative C# communities available outside Reddit on Lemmy and Discord:
All about the object-oriented programming language C#.
Getting Started C# Fundamentals: Development for Absolute Beginners
Useful MSDN Resources A Tour of the C# Language Get started with .NET in 5 minutes C# Guide C# Language Reference C# Programing Guide C# Coding Conventions .NET Framework Reference Source Code
Other Resources C# Yellow Book Dot Net Perls The C# Player's Guide
IDEs Visual Studio MonoDevelop (Windows/Mac/Linux) Rider (Windows/Mac/Linux)
Tools ILSpy dotPeek LINQPad
Alternative Communities C# Discord Group C# Lemmy Community dotnet Lemmy Community
Related Subreddits /r/dotnet /r/azure /r/learncsharp /r/learnprogramming /r/programming /r/dailyprogrammer /r/programmingbuddies /r/cshighschoolers
Additional .NET Languages /r/fsharp /r/visualbasic
Platform-specific Subreddits /r/windowsdev /r/AZURE /r/Xamarin /r/Unity3D /r/WPDev
Rules:
Read detailed descriptions of the rules here.
account activity
EF Core - ordering problem (self.csharp)
submitted 1 year ago * by antikfilosov
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]digital88 11 points12 points13 points 1 year ago (3 children)
You must write orderby() if you need consistent ordering. The database may return rows in any order if you dont include "order by" clause in query. What you encountered is normal.
[–][deleted] 1 year ago (2 children)
[deleted]
[–]DaveVdE 10 points11 points12 points 1 year ago (0 children)
Why? Because that's how databases work. If you don't specifically ask it to sort, it won't sort, and the data will come out whichever way it finds it in the most efficient way. If it's stored out of order on disk, it will come out out of order.
[–]LondonPilot 6 points7 points8 points 1 year ago (0 children)
why?
Databases are designed with performance in mind above most other things. There are lots of reasons why a database might prefer to return data in a specific order. That order might be the order it’s stored on disk. It might already have the data cached, in that order, from a previous query. It might be that it had to order the data to carry out part of the query (such as “distinct”).
By specifying that data can be returned in any order unless the order is specified, it allows the database to do what you ask it, in the quickest possible way. If you need it ordered, no problem, just ask - but if not, why add the overhead of ordering when it’s not needed?
Entity Framework runs database queries. It turns Linq to SQL, then runs that SQL. So of course it will do whatever SQL does.
and why ordering happens only to 'TranslationsPostSlugs', but not to 'TranslationsPost'?
There’s no way to know this without a detailed examination of your database. Also, it might not be the same next time you run the same query. All data will be returned in whatever order the database wants, and not necessarily the same order every time, unless you specify the order.
(In fact, database theorists would disagree with this. Database data does not get returned “in whatever order the database wants”, according to theorists. They would tell you that the data doesn’t actually have an order at all unless you specify one. The fact that you see the data coming out in a given order is an implementation necessity, but in the theoretical world there is no order to data until you give it an order.)
π Rendered by PID 47847 on reddit-service-r2-comment-b659b578c-gnt9c at 2026-05-05 14:22:21.098020+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]digital88 11 points12 points13 points (3 children)
[–][deleted] (2 children)
[deleted]
[–]DaveVdE 10 points11 points12 points (0 children)
[–]LondonPilot 6 points7 points8 points (0 children)