Fixed lovedItems order by introducing an index value to the sqlite table.