Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

order by

  • Loading branch information...
commit 419f287674986a80cf3817a56b6c7ec9a7de5283 1 parent 912922c
@mikeki authored
View
2  app/controllers/exercises_controller.rb
@@ -8,7 +8,7 @@ def find_course
# GET /exercises
# GET /exercises.xml
def index
- @exercises = @course.exercises
+ @exercises = @course.exercises.order("similarity_avarage desc")
respond_to do |format|
format.html # index.html.erb
View
2  app/views/exercises/index.html.erb
@@ -12,7 +12,7 @@
<th></th>
</tr>
-<% @exercises.each.order(:) do |exercise| %>
+<% @exercises.each do |exercise| %>
<tr>
<td><%= exercise.name %></td>
<td><%= exercise.description %></td>
Please sign in to comment.
Something went wrong with that request. Please try again.