I know this has been talked to death in some forums and I've found a couple different ways to do it. By way of example, this is a stackoverflow post discussing it and this is an msdn post talking about it. Both seem interesting yet seem to accomplish it for the original authors in different ways. They seem happy with the answers provided but I'm not getting satisfactory results (read: not consistently sorted correctly)
The question is twofold:
Is it more efficient to sort these in C# post data retrieval or in SQL by calculating a distance from point of origin and using order by (or other method)? I could end up needing to sort 3000+ locations by distance from point of origin (as denoted by lat and long)
What would be the most "correct" way to sort these points according to a lat/long of origin? By "correct" I don't by method but by actual distance from point of origin. Of course location of sorting comes into play because of question 1.
The technologies used are EF, SQL stored proc, C#.