theforeman/foreman — pull request #1801 by lzap (2014-09-26 11:13:32+00:00)
Title: Fixes #7648 - order of template kinds fixed

Nice one. I made this global, won't hurt?

When testing this watch for this SQL statement:

``` ConfigTemplate Load (0.1ms) SELECT "config_templates".* FROM
"config_templates" INNER JOIN "config_templates_operatingsystems" ON
"config_templates"."id" =
"config_templates_operatingsystems"."config_template_id" WHERE
"config_templates_operatingsystems"."operatingsystem_id" = 2 AND
"config_templates"."template_kind_id" = 1 ORDER BY config_templates.name ```

As you can see, it is ordered by name now. No index, amount of records in kinds
is low and index would not be used anyway.