Home › Forums › kdb+ › Sort a Table › Re: Sort a Table
-
q)t:([]sym:`a`b`c`d`e;x:til 5) q)t iasc`c`d?t`sym sym x ----- c 2 d 3 a 0 b 1 e 4
if you want to move the desired records to the top but want to preserve the order of the rest of the table