Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 158 Stack Exchange communities.

What is meta?
Here's how it works:
  1. Any Stack Exchange user can ask a question
  2. The community provides support, votes on ideas, and reports bugs
  3. Your voice helps shape the way Stack Exchange operates

What happens under the hood when we click one one of the tabs? (Newest, Featured, Faq, etc).

There's a querystring sort on the URL which identifies the type of sort, or in some cases the type of filter (at least in the case of Unanswered and Active).

Does each sort type use a seperate ActionResult or is there one ActionResult for sorted results and one for filtered results?

My guess is that a querystring was used instead of a seperate routing URL because some actions use one ActionResult and others user another. (or something similar).

Is this how it works or is there something much more in-depth going on?

share|improve this question

The URL corresponds to a single ActionResult method. The query string is most likely passed to a method on a repository object (utilizing a micro ORM called Dapper to get the results from the SQL Server database), and a collection of results is returned, sorted in the chosen order. Said collection is then passed to the View for rendering.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .