INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Request: path only sort field  (Read 336 times)

Shalmaneser

  • Recent member
  • *
  • Posts: 25
Request: path only sort field
« on: September 27, 2021, 03:35:00 am »

I have media on multiple drives. PITA to have the sort break on drive letter.
D:\download\xyz
E:\download\abc
F:\download\def

would become

\download\abc
\download\def
\download\xyz

thanks
Logged

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2400
Re: Request: path only sort field
« Reply #1 on: September 27, 2021, 04:39:50 am »

You can create a new computed field that removes the drive letter and then use it for sorting.
This expression removes the drive letter:
Code: [Select]
regex([filename],/#\\(.+)#/,1)
Logged
Pages: [1]   Go Up