title: ASCII Art - Sorting an array of ASCII characters by brightness levels (C/C++)
body: <p>I am working on a program (in C/C++) where the user should take a user selected image and convert this into ASCII art (using SQL). So far I have been able for the user to select an image and display this image in greyscale in a window. </p>
  
  <p>However, I am currently having difficulties sorting the ASCII characters as an array of brightness levels and then matching the single character to a pixel area. </p>
  
  <p>I am aware that I will need to use 'for' loops, but I can't find anything that useful on the internet so far. Thank you :D</p>