Fixed avail attribute on theft/loss, sorted all unsorted JSON