I need to sort a file based on the results of grep. Example:
cat cuts.txt | grep -P \'(?<=[+]).*(?=[+])\' text +124+ text text +034+ text text +334+ text <