]> rtime.felk.cvut.cz Git - sojka/company-mode.git/commitdiff
Sort candidates.
authorNikolaj Schumacher <git@nschum.de>
Wed, 11 Mar 2009 14:12:29 +0000 (15:12 +0100)
committerNikolaj Schumacher <git@nschum.de>
Thu, 19 Mar 2009 21:49:54 +0000 (22:49 +0100)
company.el

index dbc51d311a978d57e5e4c506da187c7bf82197fa..f7fe2406787d4aacf31ce2bd5fa217837cfa3f9d 100644 (file)
                     company-common (try-completion prefix company-candidates)
                     company-selection 0
                     company-point (point))
+              (unless (funcall company-backend 'sorted)
+                (setq company-candidates (sort company-candidates 'string<)))
               (company-call-frontends 'update))
             (return prefix)))
         (unless (and company-candidates