diff --git a/app/finders/milestones_finder.rb b/app/finders/milestones_finder.rb
index 23c42a5f6622f28617f3b0de7fcb1f7f7bfcf76d..0a5a0ea2f35e373e486a64e9b2cd4f9353c01d02 100644
--- a/app/finders/milestones_finder.rb
+++ b/app/finders/milestones_finder.rb
@@ -49,7 +49,8 @@ class MilestonesFinder
     if params.has_key?(:order)
       items.reorder(params[:order])
     else
-      items.reorder('due_date ASC')
+      order_statement = Gitlab::Database.nulls_last_order('due_date', 'ASC')
+      items.reorder(order_statement)
     end
   end
 end