How did the textile economy in the Scottish Borders fair during the late nineteenth century and pre-First World War era ?