﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
36644	Enable using an empty order_by() to disable implicit primary key ordering in first()	Lily	Nilesh Pahari	"As discussed in https://github.com/django/new-features/issues/71, update the interaction between `order_by` and `first` to enable this behaviour:

{{{
# Existing
MyModel.objects.first()  # first, ordered by `pk`
MyModel.objects.order_by(""pk"").first()  # as above
MyModel.objects.order_by(""name"").first()  # first, ordered by `name`

# New
MyModel.objects.order_by().first()  # first, but in whatever order the database returns it
}}}

This will interact with [https://docs.djangoproject.com/en/5.2/ref/models/options/#django.db.models.Options.ordering default orderings (`Meta.ordering`)], which will need some careful handling."	New feature	closed	Database layer (models, ORM)	dev	Normal	fixed		Jake Howard	Ready for checkin	1	0	0	0	0	0
