Author Topic: Sorting table cells  (Read 2455 times)

0 Members and 1 Guest are viewing this topic.

It's Alive!

  • Retired
  • Needs a day job
  • Posts: 8658
  • AKA Daniel
Sorting table cells
« on: December 18, 2021, 07:40:39 PM »
Writing a table sort routine.

pondering how to handle blank rows, should the routine skip blank rows? (honor their position?)
or move them sorted items to the top of the selection area

JohnK

  • Administrator
  • Seagull
  • Posts: 10603
Re: Sorting table cells
« Reply #1 on: December 18, 2021, 08:13:34 PM »
That's tough but I vote to kill them. The breaks may be needed to separate column X data but when you resort the table by column Y that separation reason may no longer exist. ...remove.
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

It's Alive!

  • Retired
  • Needs a day job
  • Posts: 8658
  • AKA Daniel
Re: Sorting table cells
« Reply #2 on: December 19, 2021, 05:41:25 AM »
That's tough but I vote to kill them. The breaks may be needed to separate column X data but when you resort the table by column Y that separation reason may no longer exist. ...remove.

Thanks! I'm going to move them to the bottom unless their locked, I found AcDbTableIterator with flag AcDb::kTableIteratorSkipReadOnlyContent