We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Featured careeropprotunities are not featured
The featured opportunities are not prioritized over other opportunities. 


--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `apps/careeropportunity/views.py`
Content:
```
1 #-*- coding: utf-8 -*-
2 from django.utils import timezone
3 
4 from datetime import datetime
5 
6 from django.conf import settings
7 from django.shortcuts import render_to_response
8 from django.shortcuts import get_object_or_404
9 from django.template import RequestContext
10 
11 from apps.careeropportunity.models import CareerOpportunity
12 
13 
14 def index(request):
15     opportunities = CareerOpportunity.objects.filter(
16     	start__lte=timezone.now(), end__gte=timezone.now()).order_by('featured', '-start')
17     
18     return render_to_response('careeropportunity/index.html', \
19             {'opportunities': opportunities}, \
20             context_instance=RequestContext(request))
21 
22 
23 def details(request, opportunity_id):
24     opportunity = get_object_or_404(CareerOpportunity, pk=opportunity_id)
25 
26     return render_to_response('careeropportunity/details.html', \
27             {'opportunity': opportunity}, \
28             context_instance=RequestContext(request))
29
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/apps/careeropportunity/views.py b/apps/careeropportunity/views.py
--- a/apps/careeropportunity/views.py
+++ b/apps/careeropportunity/views.py
@@ -13,7 +13,7 @@
 
 def index(request):
     opportunities = CareerOpportunity.objects.filter(
-    	start__lte=timezone.now(), end__gte=timezone.now()).order_by('featured', '-start')
+    	start__lte=timezone.now(), end__gte=timezone.now()).order_by('-featured', '-start')
     
     return render_to_response('careeropportunity/index.html', \
             {'opportunities': opportunities}, \

{"golden_diff": "diff --git a/apps/careeropportunity/views.py b/apps/careeropportunity/views.py\n--- a/apps/careeropportunity/views.py\n+++ b/apps/careeropportunity/views.py\n@@ -13,7 +13,7 @@\n \n def index(request):\n     opportunities = CareerOpportunity.objects.filter(\n-    \tstart__lte=timezone.now(), end__gte=timezone.now()).order_by('featured', '-start')\n+    \tstart__lte=timezone.now(), end__gte=timezone.now()).order_by('-featured', '-start')\n     \n     return render_to_response('careeropportunity/index.html', \\\n             {'opportunities': opportunities}, \\\n", "issue": "Featured careeropprotunities are not featured\nThe featured opportunities are not prioritized over other opportunities. \n\n", "before_files": [{"content": "#-*- coding: utf-8 -*-\nfrom django.utils import timezone\n\nfrom datetime import datetime\n\nfrom django.conf import settings\nfrom django.shortcuts import render_to_response\nfrom django.shortcuts import get_object_or_404\nfrom django.template import RequestContext\n\nfrom apps.careeropportunity.models import CareerOpportunity\n\n\ndef index(request):\n    opportunities = CareerOpportunity.objects.filter(\n    \tstart__lte=timezone.now(), end__gte=timezone.now()).order_by('featured', '-start')\n    \n    return render_to_response('careeropportunity/index.html', \\\n            {'opportunities': opportunities}, \\\n            context_instance=RequestContext(request))\n\n\ndef details(request, opportunity_id):\n    opportunity = get_object_or_404(CareerOpportunity, pk=opportunity_id)\n\n    return render_to_response('careeropportunity/details.html', \\\n            {'opportunity': opportunity}, \\\n            context_instance=RequestContext(request))\n", "path": "apps/careeropportunity/views.py"}], "after_files": [{"content": "#-*- coding: utf-8 -*-\nfrom django.utils import timezone\n\nfrom datetime import datetime\n\nfrom django.conf import settings\nfrom django.shortcuts import render_to_response\nfrom django.shortcuts import get_object_or_404\nfrom django.template import RequestContext\n\nfrom apps.careeropportunity.models import CareerOpportunity\n\n\ndef index(request):\n    opportunities = CareerOpportunity.objects.filter(\n    \tstart__lte=timezone.now(), end__gte=timezone.now()).order_by('-featured', '-start')\n    \n    return render_to_response('careeropportunity/index.html', \\\n            {'opportunities': opportunities}, \\\n            context_instance=RequestContext(request))\n\n\ndef details(request, opportunity_id):\n    opportunity = get_object_or_404(CareerOpportunity, pk=opportunity_id)\n\n    return render_to_response('careeropportunity/details.html', \\\n            {'opportunity': opportunity}, \\\n            context_instance=RequestContext(request))\n", "path": "apps/careeropportunity/views.py"}]}