title: Which data type to use for ordinal?
body: <p>Whenever I have some records/objects that I want to be in a certain order, I usually create a field called Ordinal.</p>
  
  <p>I often wonder if it would be better to use an integer or a decimal value for the ordinal field.</p>
  
  <p>This is a consideration when moving an object to a different position in the order:</p>
  
  <ul>
  <li><p>If you use consecutive integers, you have to do some serious reworking of all of the ordinals (or at least the ordinals that fall before the original position of the object being moved).</p></li>
  <li><p>If you use integers but space them out (maybe at 1000 intervals), then you can just change the ordinal to a mid point value between the surrounding objects where you want to move the object. This could fail if somewhere down the line you end up with consecutive integers.</p></li>
  <li><p>If you use decimal numbers you could just find the average of the surround object's ordinals and use that for the object to be moved.</p></li>
  <li><p>Maybe it would be possible to use a string, but I could see that getting pretty goofy.</p></li>
  </ul>
  
  <p>I'm sure there are other considerations I haven't thought of.
  What do you use and why?</p>