svc_hardware revision number, #16266
[freeside.git] / FS / FS / hardware_class.pm
index 073a97f..791653b 100644 (file)
@@ -112,7 +112,11 @@ Returns all L<FS::hardware_type> objects belonging to this class.
 
 sub hardware_type {
   my $self = shift;
-  return qsearch('hardware_type', { 'classnum' => $self->classnum });
+  qsearch({
+      table   => 'hardware_type',
+      hashref => { 'classnum' => $self->classnum },
+      order_by=> 'ORDER BY model, revision',
+  })
 }
 
 =back