added sorting to BF knitr object

Some kinks yet to be worked out, but major functionality is in