Feature #862 Sort on variable ID in protocol viewer download

#862 Sort on variable ID in protocol viewer download