Quote:
Originally Posted by kstar
Bubble sorting....?
Is this conceptually possible within Fanficfare for ships/relationships tag?
My objective is uniformity of the ship tagging order either by Alphabetically or by Preference.
|
You do realize bubble sort exists primarily as an example of how
not to do things in intro computing courses, right?
There's a setting you can turn on to do alphabetical sort of ships. There's no mechanism for
Preference ordering beyond what you're already doing.
Code:
## Reorder ships so b/a and c/b/a become a/b and a/b/c. '/' is no
## longer hard coded and can be changed and added to with
## sort_ships_splits.
sort_ships:true
## Each line indicates first a regex that should be used to split each
## ships entry and then, after => the string to use to merge the parts
## back together. \s == blank space.
## Each part will have replace_metadata with key ships_CHARS applied.
sort_ships_splits:
[ ]*/[ ]*=>/
[ ]*&[ ]*=>\s&\s
Quote:
Originally Posted by kstar
Side Note: Removing any "friendships" denoted with ampersand...
My coding didn't work.
|
You have the first
.* reversed (and they aren't needed) and you need to use the HTML entity for
&. This should work:
Code:
exclude_metadata_pre:
ships=~&
Quote:
Originally Posted by kstar
May have forgotton to say this before but thank you for Fanficfare. Love the program. Kudos! 
|