2021年5月4日星期二

How would I organize this text file to have the "$" first, then "C", then "E" for the output

These are the instructions: "Still create the console output as before, but without the customer number. Do all the cash contracts first, followed by all credit contracts, followed lastly by all EFT contracts." Here is the text file:

boogieboard,H,3,15,134,$  chair,R,5,0,034,C,5098385985746534  chair,D,2,12,486,$  canoe,M,10,5,231,E,8474596876,928573463  speedboat,A,2,55,970,E,2859485768,038576453  iPad,G,6,23,888,C,7034187659289876  umbrella,Z,3,0,123,$  canoe,B,1,1,237,$  boogieboard,X,4,19,973,$  iPad,J,2,56,285,C,6458756567789789  shark repellant,A,8,0,793,$  speedboat,B,4,3,592,$  flippers,D,3,3,572,E,8765643556,783436454  skis,D,2,0,432,$  
https://stackoverflow.com/questions/67393944/how-would-i-organize-this-text-file-to-have-the-first-then-c-then-e-fo May 05, 2021 at 09:04AM

没有评论:

发表评论