Summary
The CP_FILESORT command in CADPower enables users to sort the contents of an ASCII file based on custom-defined criteria. Fully compatible with BricsCAD, AutoCAD, ZWCAD and ARES Commander, this tool is ideal for organizing text-based data such as lists, tables, or records stored in a plain text format.
CADPower -> Miscellaneous Tools -> Export -> Sort ASCII files

Key features include:
- Custom Sorting Options:
- Sort by Field: Define the field number to sort data, using a specified delimiter (e.g., comma
,
or tab\t
). - Sort by Column: Specify start and end column numbers for sorting based on character position.
- Sort by Field: Define the field number to sort data, using a specified delimiter (e.g., comma
- Sort Order and Type:
- Numeric Sorting: Arrange values in ascending or descending numerical order.
- Character Sorting: Organize data alphabetically or lexicographically.
- Reverse Order: Flip the order of the sorting for customized output.
- File Input and Output:
- Select an input ASCII file to process.
- Define an output file to save the sorted content, or choose to overwrite the input file directly.
- Batch Data Management:
- Process large data files quickly, making it suitable for log files, CSVs, or any tabular text data.
- Update the original file with sorted data if desired.
- User-Friendly Interface:
- A simple dialog box allows users to define sorting parameters intuitively, such as field numbers, delimiters, and column positions.
Applications:
- Sort and organize CSV files, log files, or other tabular data for better readability and analysis.
- Reformat exported data for compatibility with spreadsheets, databases, or reporting tools.
- Rearrange data in text files for archiving or collaboration.
Benefits:
The CP_FILESORT command in CADPower enhances workflow efficiency by automating the sorting process for ASCII files. Whether you’re working in BricsCAD, AutoCAD, ZWCAD or ARES Commander, this tool ensures organized, accessible, and accurate data management.