qt_to_stock changed to int, for sort to work correctly