Jan 8, 2004 #1 yehong Programmer Sep 22, 2003 291 US The fields values are like AS, DF, 1AS,2AS,3AS,4DF. I need to sort first on AS, DF and then with 1AS and others. Is there an easiest way to do it without using a sort table from the database?
The fields values are like AS, DF, 1AS,2AS,3AS,4DF. I need to sort first on AS, DF and then with 1AS and others. Is there an easiest way to do it without using a sort table from the database?
Jan 8, 2004 #2 vidru Programmer Jul 18, 2003 2,113 US Create a formula, then sort on it: //@Sort IF ISNUMERIC(LEFT({Table.Field},1)) THEN 1 ELSE 0 -dave Upvote 0 Downvote
Jan 8, 2004 #3 synapsevampire Programmer Mar 23, 2002 20,180 US I think you want: //@Sort If ISNUMERIC(LEFT({Table.Field},1)) THEN {Table.Field} else "0"+{table.field} This way the alpahas will come first, and in order as opposed to the above, which wouldn't place them in order without a second sortation. Don't display this field, just use it for sorting. -k Upvote 0 Downvote
I think you want: //@Sort If ISNUMERIC(LEFT({Table.Field},1)) THEN {Table.Field} else "0"+{table.field} This way the alpahas will come first, and in order as opposed to the above, which wouldn't place them in order without a second sortation. Don't display this field, just use it for sorting. -k