laotang,
@laotang@emacs.ch avatar

For the past few years (basically within the first few months of using Emacs in 2020) I’ve been using . My understanding of how completing-read and the minibuffer in should work are thereby strongly influenced by this experience.

This weekend I finally had some time to play with (and marginalia, consult, orderless… inspired by Prot's video). Probably I’m holding it wrong but it was not a smooth experience. Is it correct that vertico ignores the sorting of the collection used? Is there a way to change this? Why is the minibuffer here broken? Any advice would be welcome.

The images attached show the results for (completing-read "" orgrr-selection-list) in helm and vertico.

(completing-read "" orgrr-selection-list) in vertico

sachac,
@sachac@emacs.ch avatar

@laotang there's an extra step if you want completing-read to respect sort order: https://emacs.stackexchange.com/questions/8115/make-completing-read-respect-sorting-order-of-a-collection

laotang,
@laotang@emacs.ch avatar

@sachac Thanks! This would explain why sorting is correct in Helm. It also explains why (setq vertico-sort-function nil) produces the correct order in Vertico.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • emacs
  • DreamBathrooms
  • magazineikmin
  • thenastyranch
  • GTA5RPClips
  • Youngstown
  • mdbf
  • osvaldo12
  • slotface
  • everett
  • rosin
  • modclub
  • kavyap
  • InstantRegret
  • vwfavf
  • megavids
  • Durango
  • cisconetworking
  • ethstaker
  • cubers
  • khanakhh
  • tester
  • ngwrru68w68
  • tacticalgear
  • normalnudes
  • provamag3
  • Leos
  • anitta
  • JUstTest
  • All magazines