sketch 5

Made functions of all data handling such that sorting factors are all
variables rather than being hard coded.  Thinking about doing the same
with graphics code to enable more efficient updating for interactivity.
  Trying to figure out what to prioritize next…